// 合作伙伴动画效果
function initPartners() {
    // 检查是否存在合作伙伴相关元素
    const partnersSection = document.querySelector('.partners-section');
    if (!partnersSection) {
        console.log('Partners section not found, skipping animation initialization');
        return;
    }

    console.log('Partners animation initialized');

    // 获取所有合作伙伴logo
    const partnerLogos = document.querySelectorAll('.partner-logo');
    
    // 为每个logo添加鼠标悬停效果
    partnerLogos.forEach(logo => {
        logo.addEventListener('mouseenter', function() {
            this.style.transform = 'translateY(-5px)';
            this.style.transition = 'transform 0.3s ease';
        });
        
        logo.addEventListener('mouseleave', function() {
            this.style.transform = 'translateY(0)';
        });
    });
}

// 确保在组件加载完成后执行
if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', initPartners);
} else {
    initPartners();
} 